import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import index from '@/components/page/index'
import content from '@/components/page/content'
import home from '@/components/page/home'
import setPage from '@/components/page/setPage'
import getPage from '@/components/page/getPage'
import scrollPage from '@/components/page/scrollPage'
import { InfiniteScroll } from 'mint-ui'
Vue.use(InfiniteScroll)
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/content',
      name: 'content',
      component: content
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/setPage',
      name: 'setPage',
      component: setPage
    },
    {
      path: '/getPage',
      name: 'getPage',
      component: getPage
    },
    {
      path: '/scrollPage',
      name: 'scrollPage',
      component: scrollPage
    }
  ]
})
